package com.hnkywl.sts.entity.xsgl;

import com.hnkywl.sts.entity.BaseEntity;
import com.hnkywl.sts.entity.base.Sjzdz;
import com.hnkywl.sts.entity.cggl.Jsd;
import org.hibernate.annotations.Formula;
import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;
import org.hibernate.annotations.Where;

import javax.persistence.*;

/**
 * 说明：销售明细
 * 包:        com.hnkywl.sts.entity.xsgl
 * 类描述:    销售明细
 * 修改备注: [说明本次修改内容]
 * 版本:        [v1.0]
 */
@Entity
@Table(name = "T_BIZ_LLDMX")
@Where(clause = "deleted!='1'")
public class Lldmx extends BaseEntity {
    @Id
    @SequenceGenerator(name = "seqLldmx", allocationSize = 1, sequenceName = "SEQ_BIZ_LLDMX")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqLldmx")
    private Long id;

    @ManyToOne
    @JoinColumn(name = "LLD_ID")
    private Lld lld;

    /**
     * 卡号
     */
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "KH_ID")
    private Kh kh;

    /**
     * 记重方式
     */
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "JZFS_SJZDZ_ID")
    private Sjzdz jzfs;

    /**
     * 开单件数
     */
    private Integer kdjs;

    /**
     * 开单数量
     */
    private Double kdsl;

    /**
     * 开单单价
     */
    private Double kddj;

    /**
     * 开单金额
     */
    private Double kdje;

    /**
     * 发料件数
     */
    private Integer fljs;

    /**
     * 发料数量
     */
    private Double flsl;

    /**
     * 发料单价
     */
    private Double fldj;

    /**
     * 发料金额
     */
    private Double flje;

    /**
     * 成本单价，该成本单用于考核经营利润
     */
    private Double cbdj;

    /**
     * 成本金额
     */
    private Double cbje;

    /**
     * 领料明细备注
     */
    private String llbz;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Double getKdje() {
        return kdje;
    }

    public void setKdje(Double kdje) {
        this.kdje = kdje;
    }

    public Double getFldj() {
        return fldj;
    }

    public void setFldj(Double fldj) {
        this.fldj = fldj;
    }

    public Double getKddj() {
        return kddj;
    }

    public void setKddj(Double kddj) {
        this.kddj = kddj;
    }

    public Lld getLld() {
        return lld;
    }

    public void setLld(Lld lld) {
        this.lld = lld;
    }

    public Kh getKh() {
        return kh;
    }

    public void setKh(Kh kh) {
        this.kh = kh;
    }

    public Sjzdz getJzfs() {
        return jzfs;
    }

    public void setJzfs(Sjzdz jzfs) {
        this.jzfs = jzfs;
    }

    public Integer getKdjs() {
        return kdjs;
    }

    public void setKdjs(Integer kdjs) {
        this.kdjs = kdjs;
    }

    public Double getKdsl() {
        return kdsl;
    }

    public void setKdsl(Double kdsl) {
        this.kdsl = kdsl;
    }


    public Integer getFljs() {
        return fljs;
    }

    public void setFljs(Integer fljs) {
        this.fljs = fljs;
    }

    public Double getFlsl() {
        return flsl;
    }

    public void setFlsl(Double flsl) {
        this.flsl = flsl;
    }

    public Double getFlje() {
        return flje;
    }

    public void setFlje(Double flje) {
        this.flje = flje;
    }

    public Double getCbdj() {
        return cbdj;
    }

    public void setCbdj(Double cbdj) {
        this.cbdj = cbdj;
    }

    public Double getCbje() {
        return cbje;
    }

    public void setCbje(Double cbje) {
        this.cbje = cbje;
    }

    public String getLlbz() {
        return llbz;
    }

    public void setLlbz(String llbz) {
        this.llbz = llbz;
    }

}
